import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as ElIconModules from '@element-plus/icons-vue' // element图标
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css' // 主题 dark
import { ElMessage, ElMessageBox } from 'element-plus'

window.ElMessage = ElMessage
window.ElMessageBox = ElMessageBox

export default {
  plugin: ElementPlus,
  // option: { locale: zhCn, size: 'small' },
  option: { locale: zhCn },
  component: ElIconModules,
}
